package com.yudaxian.sys.service.impl;

import com.yudaxian.sys.entity.Organization;
import com.yudaxian.sys.entity.Organization;
import com.yudaxian.sys.mapper.OrganizationMapper;
import com.yudaxian.sys.service.IOrganizationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yudaxian
 * @since 2023-12-05
 */
@Service
public class OrganizationServiceImpl extends ServiceImpl<OrganizationMapper, Organization> implements IOrganizationService {


    @Override
    public Organization getOrganizationById(Integer id) {
        return this.baseMapper.selectById(id);
    }

    @Override
    public void addOrganization(Organization organization) {
        this.baseMapper.insert(organization);
    }

    @Override
    public void updateOrganization(Organization organization) {
        this.baseMapper.updateById(organization);
    }

    @Override
    public void deleteOrganizationById(Integer id) {
        this.baseMapper.deleteById(id);
    }

}
